#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "taskeditor.h"
#include "general.h"
#include "report.h"


MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent), ui(new Ui::MainWindowClass)
{
    ui->setupUi(this);
    qApp->processEvents();
    TaskEditor *te = new TaskEditor(this);
    qApp->processEvents();
    General *ge = new General(this);
    qApp->processEvents();
    Report *re = new Report(this);
    qApp->processEvents();
    ui->tabWidget->removeTab(0);
    ui->tabWidget->addTab(te,trUtf8("Задания"));
    ui->tabWidget->addTab(ge,trUtf8("Тесты"));
    ui->tabWidget->addTab(re,trUtf8("Отчёты"));
    this->showMaximized();
    //ui->tabWidget->addTab(aev,trUtf8("Варианты ответов"));
}

MainWindow::~MainWindow()
{
    delete ui;
}
